Relay control unit, relay control system, relay control method, and relay control program

ABSTRACT

Communication allowance determination means determines, using information of a packet received by a packet relay unit and based on a policy which is information associating a match condition with communicability information, whether to allow or not to allow communication to a destination unit for the packet that meets the match condition, the match condition being information identifying the packet, and the communicability information indicating whether to allow or not to allow the communication to the destination unit for the packet that meets the match condition. Rule setting means sets, at least in the packet relay unit receiving the packet, a rule of executing a process for suppressing forwarding of the packet to the destination unit, on condition that the communication allowance determination means determines not to allow the communication to the destination unit for the packet that meets the match condition.

TECHNICAL FIELD

The present invention relates to a relay control unit, a relay controlsystem, and a relay control program for controlling processing performedby a packet relay unit, and a packet relay unit, a packet relay method,and a packet relay program applied to the relay control system.

BACKGROUND ART

Various network architectures in which a controller performs centralizedmanagement of operations of switches for forwarding packets are known.For example, NPL 1 and NPL 2 each describe a network architectureaccording to Ethane. Ethane is a network architecture including acontroller that determines behaviors of packets transmitted and switchesthat are under control of the controller and forward packets.

Each switch includes a flow table for determining destinations ofpackets. Upon receiving a packet whose destination is indicated by anentry in the flow table, the switch transmits the packet based on theentry. Upon receiving a packet having no corresponding entry in the flowtable, on the other hand, the switch forwards information of the packetto the controller. The controller has information about a communicationnetwork topology, and performs path computation for a packet for whichcommunication is allowed. In detail, upon receiving the information ofthe packet from the switch, the controller determines whether to allowor not to allow communication of the packet. In the case of determiningto allow the communication, the controller computes a path of thepacket. The controller then adds a new destination entry to a flow tableof each switch on the computed path. The switch subsequently transmitsthe packet based on the registered destination entry.

NPL 3 describes a network architecture according to OpenFlow (hereafteralso referred to as “OF”). Like Ethane, OpenFlow is a networkarchitecture in which a controller controls switches. In OpenFlow, apacket forwarding function and a path control function are separated bya flow control protocol, where the controller controls different typesof switches using a uniform API (Application Program Interface).Besides, in OpenFlow, packet control in flow granularity is performedfor faster datapath and lower control cost.

Each switch in OF includes a flow table for storing actions for receivedpackets, and a secure channel through which the switch communicates withthe controller. The switch and the controller communicate with eachother on the secure channel, using an OF protocol.

FIG. 20 is an explanatory diagram showing flow entries stored in a flowtable. The flow table stores, for each flow, a rule (Rule) against whicha packet header is checked, an action (Action) defining a process forthe flow, and flow statistic information (Statistics).

In the rule (Rule), a value (exact) for determining whether or not thereis a match and a wildcard (wild card) are used. FIG. 21 is anexplanatory diagram showing fields against which the packet header ischecked. The following fields are used as search keys against which thepacket header is checked.

(1) Input port number (Input Port No) of a Physical (physical) layer

(2) MAC (Media Access Control) DA (MAC destination address), MAC SA (MACsource address), VLAN ID (Virtual LAN (Local Area Network) ID), or VLANTYPE (priority) of an Ethernet (registered trademark) (Ethernet(registered trademark)) layer

(3) IP SA (IP source address), IP DA (IP destination address), or IPprotocol of an IPv4 (version4) layer

(4) Source Port (TCP/UDP source port) and/or Destination Port (TCP/UDPdestination port) of a TCP (Transmission Control Protocol)/UDP (UserDatagram Protocol) layer

(5) ICMP Type or ICMP Code of an ICMP (Internet Control MessageProtocol) layer

The action (Action) is a process applied to a packet that matches therule. FIG. 22 is an explanatory diagram showing actions set for a flow.For example, in the case where “OUTPUT” is set in the action, it meansthat the switch performs “output to designated port” on the packet thatmatches the rule. Likewise, in the case where “SET_DL_DST” is set in theaction, it means that the switch performs “update MAC DA (destinationunit)” to which the packet that matches the rule is transmitted.

The flow statistic information includes the number of packets and thenumber of bytes of packets that match the rule, an elapsed time (sessionduration) from reception of a last one of the packets, and the like. Theflow statistic information is used for determining whether or not todelete the flow entry.

The following describes an operation in OF. Upon receiving a packet, theswitch compares a packet header of the received packet with the rule inthe flow table. In the case where the received packet does not match therule, the switch forwards information of the packet to the controller,using a message in the secure channel. The controller computes atransmission path of the packet, based on a communication networktopology. The controller then transmits a message for adding a flowentry to the flow table of the switch, to enable the switch to relay thepacket along the transmission path. Subsequently, upon receiving apacket corresponding to the added flow entry, the switch performs acorresponding action (forwarding process), without forwardinginformation of the packet to the controller.

FIG. 23 is an explanatory diagram showing messages used on the securechannel. For example, the switch transmits a message “Packet in” to thecontroller, in the case of notifying the controller of an input packet.Likewise, the switch transmits a message “Flow Expired” to thecontroller, in the case of notifying the controller of expiration of aflow (session duration reaching a predetermined time). On the otherhand, the controller transmits a message “Packet Out” to the switch, inthe case of instructing the switch to output a packet. Likewise, thecontroller transmits a message “Flow Mod” to the switch, in the case ofrequesting the switch to register, change, or delete a flow.

CITATION LIST Non Patent Literature

NPL 1: Martin Casado, and five others, “Ethane: Taking Control of theEnterprise”, ACM SIGCOMM Computer Communication Review, Volume 37, Issue4, SESSION: Enterprise networks, Pages: 1 to 12, October 2007

NPL 2: Martin Casado, and five others, “Architectural Support forSecurity Management in Enterprise Networks”, Slide 11, [online], [searchon Aug. 24, 2009], Internet <URL:http://www.soi.wide.ad.jp/project/sigcomm2007/pdf/sig11.pdf>

NPL 3: Nick McKeown, and seven others, “OpenFlow: Enabling Innovation inCampus Networks”, [online], [search on Aug. 24, 2009], Internet <URL:

http://www.openflowswitch.org/documents/openflow-wp- latest.pdf>

SUMMARY OF INVENTION Technical Problem

In the network architecture based on Ethane described in NPL 1 and NPL2, for a packet which has no corresponding entry in the flow table andfor which the controller does not allow communication, no pathcomputation is typically performed and therefore no forwarding isperformed. In many occasions, such a packet is accumulated in a queue ofthe switch, and discarded after a predetermined time elapses.

In the case where the switch receives again the packet for which thecontroller does not allow communication, the switch normally queries thecontroller again, and the controller determines again whether to allowor not to allow communication for the packet. That is, in the case wherethe switch repeatedly receives a packet for which communication is notallowed, the switch needs to query the controller each time, and alsothe controller needs to determine each time whether to allow or not toallow communication. This causes a problem of a high processing load onboth the switch and the controller.

For example, when retransmission is repeatedly performed in TCPcommunication because a packet does not arrive at a destination unit,the switch will end up repeatedly receiving the same packet. In thiscase, each time the packet arrives at the switch, the switch queries thecontroller. This causes a problem of an increase in CPU load of both theswitch and the controller.

In OpenFlow described in NPL 3, too, when the switch repeatedlytransmits, to the controller, a packet for which communication to adestination unit is not allowed, a problem of a high processing load onboth the switch and the controller arises. Hence, it is desirable thatthe controller controls the switch so that such a packet can beprocessed appropriately.

In view of this, an exemplary object of the present invention is toprovide a relay control unit, a relay control system, and a relaycontrol program that can reduce a load of processing performed by apacket relay unit on a packet for which communication to a destinationunit is not allowed, and a packet relay unit, a packet relay method, anda packet relay program that are applied to the relay control system.

Solution to Problem

A relay control unit according to the present invention is a relaycontrol unit for controlling a packet relay unit, the relay control unitcomprising: communication allowance determination means for determining,using information of a packet received by the packet relay unit andbased on a policy which is information associating a match conditionwith communicability information, whether to allow or not to allowcommunication to a destination unit for the packet that meets the matchcondition, the match condition being information identifying the packet,and the communicability information indicating whether to allow or notto allow the communication to the destination unit for the packet thatmeets the match condition; and rule setting means for setting, at leastin the packet relay unit receiving the packet, a rule of executing aprocess for suppressing forwarding of the packet to the destinationunit, on condition that the communication allowance determination meansdetermines not to allow the communication to the destination unit forthe packet that meets the match condition.

A relay control system according to the present invention comprises: apacket relay unit; and a relay control unit for controlling the packetrelay unit, wherein the relay control unit includes: communicationallowance determination means for determining, using information of apacket received by the packet relay unit and based on a policy which isinformation associating a match condition with communicabilityinformation, whether to allow or not to allow communication to adestination unit for the packet that meets the match condition, thematch condition being information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and rule setting means for setting, at least in thepacket relay unit receiving the packet, a rule of executing a processfor suppressing forwarding of the packet to the destination unit, oncondition that the communication allowance determination meansdetermines not to allow the communication to the destination unit forthe packet that meets the match condition.

A packet relay unit according to the present invention comprises: flowstorage means for storing a flow which is information associating aprocess for a received packet with information identifying the packet;and packet relay means for relaying the received packet based on theflow stored in the flow storage means, wherein the packet relay meanstransmits information of the packet to a relay control unit in the casewhere the flow associated with the received packet is not stored in theflow storage means, and processes the packet based on the flow set bythe relay control unit, the relay control unit: determining, using theinformation of the received packet and based on a policy which isinformation associating a match condition with communicabilityinformation, whether to allow or not to allow communication to adestination unit for the packet that meets the match condition, thematch condition being information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and setting, at least in a source unit receiving thepacket, the flow of executing a process for suppressing forwarding ofthe packet that meets the match condition to the destination unit, oncondition that the communication to the destination unit is determinednot to be allowed for the packet.

A relay control method according to the present invention comprises: arelay control unit for controlling a packet relay unit determining,using information of a packet received by the packet relay unit andbased on a policy which is information associating a match conditionwith communicability information, whether to allow or not to allowcommunication to a destination unit for the packet that meets the matchcondition, the match condition being information identifying the packet,and the communicability information indicating whether to allow or notto allow the communication to the destination unit for the packet thatmeets the match condition; and the relay control unit setting, at leastin the packet relay unit receiving the packet, a rule of executing aprocess for suppressing forwarding of the packet to the destinationunit, on condition that the communication to the destination unit isdetermined no to be allowed for the packet that meets the matchcondition.

A packet relay method according to the present invention comprises:relaying a received packet based on a flow stored in flow storage meansfor storing the flow which is information associating a process for thereceived packet with information identifying the packet; andtransmitting information of the packet to a relay control unit in thecase where the flow associated with the received packet is not stored inthe flow storage means, and relaying the packet based on the flow set bythe relay control unit, the relay control unit: determining, using theinformation of the received packet and based on a policy which isinformation associating a match condition with communicabilityinformation, whether to allow or not to allow communication to adestination unit for the packet that meets the match condition, thematch condition being information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and setting, at least in a source unit receiving thepacket, the flow of executing a process for suppressing forwarding ofthe packet that meets the match condition to the destination unit, oncondition that the communication to the destination unit is determinednot to be allowed for the packet.

A relay control program according to the present invention is a relaycontrol program applied to a computer for controlling a packet relayunit, the relay control program causing the computer to execute: acommunication allowance determination process of determining, usinginformation of a packet received by the packet relay unit and based on apolicy which is information associating a match condition withcommunicability information, whether to allow or not to allowcommunication to a destination unit for the packet that meets the matchcondition, the match condition being information identifying the packet,and the communicability information indicating whether to allow or notto allow the communication to the destination unit for the packet thatmeets the match condition; and a rule setting process of setting, atleast in the packet relay unit receiving the packet, a rule of executinga process for suppressing forwarding of the packet to the destinationunit, on condition that the communication to the destination unit isdetermined no to be allowed for the packet that meets the matchcondition in the communication allowance determination process.

A packet relay program according to the present invention is a packetrelay program applied to a computer that includes flow storage means forstoring a flow which is information associating a process for a receivedpacket with information identifying the packet, the packet relay programcausing the computer to execute a packet relay process of relaying thereceived packet based on the flow stored in the flow storage means,wherein in the packet relay process, the computer is caused to transmitinformation of the packet to a relay control unit in the case where theflow associated with the received packet is not stored in the flowstorage means, and process the packet based on the flow set by the relaycontrol unit, the relay control unit: determining, using the informationof the received packet and based on a policy which is informationassociating a match condition with communicability information, whetherto allow or not to allow communication to a destination unit for thepacket that meets the match condition, the match condition beinginformation identifying the packet, and the communicability informationindicating whether to allow or not to allow the communication to thedestination unit for the packet that meets the match condition; andsetting, at least in a source unit receiving the packet, the flow ofexecuting a process for suppressing forwarding of the packet that meetsthe match condition to the destination unit, on condition that thecommunication to the destination unit is determined not to be allowedfor the packet.

Advantageous Effects of Invention

According to the present invention, a load of processing performed by apacket relay unit on a packet for which communication to a destinationunit is not allowed can be reduced.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram showing an example of a relay control systemin a first exemplary embodiment.

FIG. 2 is an explanatory diagram showing an example of policies for aDeny packet.

FIG. 3 is a flowchart showing an example of processing in the case ofreceiving information of a packet.

FIG. 4 is a flowchart showing an example of processing performed by aDeny control unit 17.

FIG. 5 is a flowchart showing an example of processing caused byupdating of a policy.

FIG. 6 is a block diagram showing an example of a relay control systemin a second exemplary embodiment.

FIG. 7 is a flowchart showing an example of processing in the case ofreceiving information of a packet.

FIG. 8 is a block diagram showing an example of a relay control systemin a third exemplary embodiment.

FIG. 9 is a flowchart showing an example of processing performed by aDeny control unit 17 b.

FIG. 10 is a block diagram showing an example of a relay control systemin a fourth exemplary embodiment.

FIG. 11 is an explanatory diagram showing an example where communicationis performed from a source to a destination.

FIG. 12 is an explanatory diagram showing an example where communicationis performed from a source to a destination.

FIG. 13 is a flowchart showing an example of processing in the case ofreceiving information of a packet.

FIG. 14 is a flowchart showing an example of processing performed by anAllow control unit 16 c.

FIG. 15 is a block diagram showing an example of a relay control systemin a fifth exemplary embodiment.

FIG. 16 is a flowchart showing an example of processing in the case ofreceiving a message requesting an action of a flow.

FIG. 17 is a block diagram showing an example of a minimum structure ofa relay control unit according to the present invention.

FIG. 18 is a block diagram showing an example of a minimum structure ofa relay control system according to the present invention.

FIG. 19 is a block diagram showing an example of a minimum structure ofa packet relay unit according to the present invention.

FIG. 20 is an explanatory diagram showing flow entries stored in a flowtable.

FIG. 21 is an explanatory diagram showing fields against which a packetheader is checked.

FIG. 22 is an explanatory diagram showing actions set for a flow.

FIG. 23 is an explanatory diagram showing messages used on a securechannel.

DESCRIPTION OF EMBODIMENT

Exemplary embodiments of the present invention are described below, withreference to drawings. The following describes the case where thepresent invention is applied to OpenFlow. That is, the followingdescribes the case where the present invention is applied to OpenFlowincluding an OF switch (Open Flow Switch, hereafter referred to as“OFS”) which is a packet relay unit and an OF controller (Open FlowController, hereafter referred to as “OFC”) which is a unit (i.e. arelay control unit) for controlling the packet relay unit. Note,however, that a network architecture to which the present invention isapplied is not limited to OpenFlow. The present invention is applicableto any other form of network architecture in which a relay control unitcontrols a packet relay unit.

First Exemplary Embodiment

FIG. 1 is a block diagram showing an example of a relay control systemin a first exemplary embodiment of the present invention. The relaycontrol system in this exemplary embodiment includes an OFC 10 and anOFS 30. The OFC 10 is a controller that has network topology informationand valid communication path information, and controls the OFS 30 in acommunication network. In detail, the OFC 10 controls processingperformed by the OFS 30 upon receiving a packet. The OFS 30 is a switchthat forwards the received packet based on a set rule, under control ofthe OFC 10. The OFC 10 and the OFS 30 are connected to each other viathe communication network, where a form of the communication network isnot particularly limited. Though only one OFS 30 is shown in the relaycontrol system in FIG. 1, the number of OFSs 30 is not limited to one,and may be two or more. Moreover, the OFC 10 may have a clusterstructure composed of a plurality of computers which collectivelyachieve functions of the OFC 10.

The OFS 30 includes a network interface unit 31, a storage unit 32, anda control unit 33. The network interface unit 31 communicates with theOFC 10 or another switch (not shown).

The storage unit 32 stores a process (hereafter also referred to as“switch action”) for a received packet, in association with informationidentifying the packet. The switch action includes a process such asforwarding the received packet to a designated port, discarding (alsoreferred to as “Drop”) the packet, transmitting the packet to the OFC10, or the like. As the information identifying the packet, the storageunit 32 may store, for example, a protocol number, a Src (Source) IPaddress, a Src port, a Dst (Destination) IP address, and a Dst portincluded in a set of information called 5-tuple. Note, however, that theinformation identifying the packet is not limited to 5-tuple. Thestorage unit 32 may store an input port, a VLAN (Virtual LAN) ID, anEthertype, a Src MAC address, and a Dst MAC address included in a set ofinformation called 10-tuple, as the information identifying the packet.Moreover, the storage unit 32 may store a VLAN priority included in aset of information called 11-tuple, as the information identifying thepacket. Furthermore, the storage unit 32 may store a wildcard indicatingarbitrary information, as the information identifying the packet. Thestorage unit 32 stores at least one pair of identification informationand a switch action in association with each other. This identificationinformation is information for determining the switch action, andaccordingly is hereafter also referred to as “rule”. In addition,information associating the rule with the switch action is alsocollectively referred to as “flow”. Hence, the storage unit 32 can beregarded as a storage unit for storing the flow. For example, thestorage unit 32 is realized by a magnetic disk unit or the like includedin the OFS 30. The flow in the storage unit 32 is stored by the controlunit 33 according to an instruction from the OFC 10.

The control unit 33 processes the received packet, based on the flowstored in the storage unit 32. In detail, upon receiving the packet fromanother unit, the control unit 33 compares header information of thepacket with the rule in the flow, and executes the switch action of therule corresponding to the header information. For instance, the controlunit 33 may execute the switch action corresponding to the rule, in thecase where the header information of the packet matches theidentification information indicated by the rule. Note that, in the casewhere the storage unit 32 stores, as the rule, an input port and a valueof an arbitrary bit field in a payload, the control unit 33 maydetermine whether or not information identifying the received packetmatches the information indicated by the rule. Moreover, in the casewhere the storage unit 32 stores a prefix of an IP address as the rule,the control unit 33 may compare an IP address included in the receivedpacket with the prefix to determine whether or not they match.

In the case where no flow corresponding to the received packet is storedin the storage unit 32, the control unit 33 transmits information of thereceived packet to the OFC 10. Subsequently, upon receiving a flowcorresponding to the transmitted information of the packet from the OFC10, the control unit 33 stores the received flow in the storage unit 32,and also executes a switch action indicated by the received flow. InOpenFlow, a packet not corresponding to any flow stored in the storageunit 32 as mentioned above is also referred to as “first packet”.

Moreover, when the OFS 30 is connected to the communication network towhich the OFC 10 is connected, the control unit 33 may notify the OFC 10of information (e.g. a Hello message) indicating the connection. Thecontrol unit 33 may also receive identification information and a switchaction (i.e. a flow) transmitted together from the OFC 10, and storethese information in the storage unit 32.

The control unit 33 is realized by a CPU of a computer operatingaccording to a program. For example, the program may be stored in thestorage unit 32 in the OFS 30, with the CPU reading the program andoperating as the control unit 33 according to the program.

The OFC 10 includes an OF protocol (hereafter referred to as “OFP”)reception unit 11, a policy table 12, a static policy acquisition unit13, a dynamic policy acquisition unit 14, a policy determination unit15, an Allow control unit 16, a Deny control unit 17, a path computationunit 18, a Deny log creation unit 19, an OFS control unit 20, and an OFPtransmission unit 21.

The OFP reception unit 11 receives a message based on the OFP, from theOFS 30. In detail, the OFP reception unit 11 receives a packet having nocorresponding flow in the storage unit 32 in the OFS 30.

The policy table 12 stores information (hereafter referred to as“policy”) that associates information (hereafter referred to as “matchcondition”) identifying a transmitted packet with communicabilityinformation (hereafter simply referred to as “action”) indicatingwhether to allow or not to allow communication to a destination unit fora packet that meets the match condition. For example, the policy table12 is realized by a magnetic disk unit or the like included in the OFC10. The match condition may be the same as a rule used by a controllerto identify a packet in OpenFlow. Moreover, for example, the sameinformation (i.e. 5-tuple or 10-tuple) as the identification information(rule) stored in the storage unit 32 may be used as the match condition.The policy table 12 may store the policy beforehand, or store the policyaccording to an instruction from another unit or a user.

As mentioned above, the action is information indicating whether thepacket is a packet for which communication to the destination unit isallowed (Allow) or a packet for which communication to the destinationunit is not allowed (Deny). The action may include additionalinformation indicating a process performed for the packet for whichcommunication to the destination unit is not allowed (Deny). In thiscase, the policy table 12 stores the additional information inassociation with the action of each individual match condition. Theadditional information includes information such as disposing a Denypacket (drop), keeping a log (logging), setting a path to an externalspecific unit, or the like. The process for the packet for whichcommunication to the destination unit is not allowed (Deny) is hereafteralso referred to as “Deny process”. The Deny process is a process for apacket that is not forwarded, and therefore can be regarded as a processfor suppressing forwarding of the packet to the destination unit. Notethat, in the case where there is only one type of Deny process, thepolicy table 12 does not need to store the additional information.

FIG. 2 is an explanatory diagram showing an example of policies for thepacket for which communication to the destination unit is not allowed(Deny). FIG. 2( a) is an explanatory diagram showing an example whereDeny is set in a last policy of set policies. In the example shown inFIG. 2( a), the packet is compared with the policies in the order inwhich the policies are set, and determined as Deny in the case where thepacket does not match any of the policies preceding “All Deny”.

FIG. 2( b) is an explanatory diagram showing an example of policies inthe case of determining, based on information set in a payload of thepacket, whether or not the packet is a Deny packet. “IP192.168.0.1→Deny” shown as an example in FIG. 2( b) indicates thataccess from an IP address “192.168.0.1” is not allowed (determined asDeny). Meanwhile, “IP 192.168.0.0/0.0.7.255→Deny” shown as an example inFIG. 2( b) indicates that access from an IP address other than“192.168.0.0/255.255.248.0” is not allowed (determined as Deny).

Though the policy that uses an IP address as the identificationinformation is shown as an example in FIG. 2, the information used asthe identification information of the policy is not limited to an IPaddress. An ID identifying a terminal, such as a MAC (Media AccessControl) address, may be used as the identification information of thepolicy. Moreover, information of a field identifying a protocol or anapplication, such as a protocol number or a port number, may be used asthe identification information of the policy. Furthermore, a valueidentifying a network, such as a VLAN ID or a MPLS (Multi-Protocol LabelSwitching) label, may be used as the identification information of thepolicy.

Alternatively, an input port of a switch may be used as theidentification information of the policy. An example of such a policy is“Deny a packet from Porti of switch A”. The policy may also include boththe information set in the payload and the input port of the switch. Anexample of such a policy is “Deny access from IP 192.168.0.1 of Porti ofswitch A”.

The static policy acquisition unit 13 acquires a policy stored in thepolicy table 12. In detail, the static policy acquisition unit 13determines whether or not an updated policy is included in the policiesstored in the policy table 12, and reads the updated policy. As anexample, the static policy acquisition unit 13 may access the policytable 12 on a regular basis, determine information different fromprevious access as an updated policy, and read the updated policy. Themethod of determining the updated policy, however, is not limited to theabove-mentioned method. As another example, the policy table 12 maycreate a trigger at a timing of updating a policy and notify the staticpolicy acquisition unit 13 of the trigger, where receiving the triggercauses the static policy acquisition unit 13 to determine that thepolicy is updated. Further, initialization of the policy table 12 maycause the static policy acquisition unit 13 to determine that allpolicies in the policy table 12 are updated.

Moreover, receiving the information (e.g. a Hello message) indicatingthat the OFS 30 is connected to the communication network may cause thestatic policy acquisition unit 13 to determine whether or not the policytable 12 is updated. Having read the updated policy, the static policyacquisition unit 13 notifies the policy determination unit 15 of thepolicy.

Thus, the OFS 30 receives the identification information and the actionstored in the policy table 12, regardless of the received packet. Suchtransmitted/received identification information and action can thereforebe called a static policy. Hence, the static policy acquisition unit 13can be regarded as detecting the update of the static policy andacquiring the flow (i.e. match condition) and the action.

The dynamic policy acquisition unit 14 acquires a policy correspondingto the received information of the packet, from the policy table 12. Indetail, the dynamic policy acquisition unit 14 compares the receivedinformation of the packet with each match condition stored in the policytable 12, and reads, from the policy table 12, an action correspondingto a match condition met by the received information of the packet. Forexample, in the case where the OFP reception unit 11 receives theinformation of the packet and the “Packet-in” message based on the OFPfrom the OFS 30, the dynamic policy acquisition unit 14 reads, oncondition that the received information of the packet meets the matchcondition, the action corresponding to the match condition from thepolicy table 12. The “Packet-in” message mentioned here is a messageused on a Secure Channel in OpenFlow, indicating that the packet inputin the switch is notified to the controller. The dynamic policyacquisition unit 14 notifies the policy determination unit 15 of theread action and the information of the packet.

Though this exemplary embodiment describes the case where the OFC 10includes both the static policy acquisition unit 13 and the dynamicpolicy acquisition unit 14, the OFC 10 may include any one or both ofthe static policy acquisition unit 13 and the dynamic policy acquisitionunit 14.

The policy determination unit 15 determines, using the information ofthe packet received by the OFS 30, whether to allow or not to allowcommunication to the destination unit for the packet, based on thepolicy. In detail, upon receiving the action read by the dynamic policyacquisition unit 14 and the information of the packet received from theOFS 30, the policy determination unit 15 determines whether or not theaction is an action of allowing communication to the destination unit.In the case of an action of allowing (Allow) communication to thedestination unit, the policy determination unit 15 determines to allowcommunication to the destination unit, and instructs the below-mentionedAllow control unit 16 to compute a forwarding destination of the packet.In the case of an action of not allowing (Deny) communication to thedestination unit, the policy determination unit 15 determines not toallow communication to the destination unit, and instructs thebelow-mentioned Deny control unit 17 to determine a Deny process of thepacket.

The policy determination unit 15 may also determine whether to allow ornot to allow communication to the destination unit for the packetindicated by the match condition of the updated policy, based on thepolicy. In detail, upon receiving the updated policy from the staticpolicy acquisition unit 13, the policy determination unit 15 determineswhether or not the action included in the policy is an action ofallowing communication to the destination unit. In the case of an actionof allowing (Allow) communication to the destination unit, the policydetermination unit 15 determines to allow communication to thedestination unit for the packet indicated by the match condition of thepolicy, and instructs the below-mentioned Allow control unit 16 tocompute a forwarding destination of the packet. In the case of an actionof not allowing (Deny) communication to the destination unit, the policydetermination unit 15 determines not to allow communication to thedestination unit for the packet indicated by the match condition of thepolicy, and instructs the below-mentioned Deny control unit 17 todetermine a Deny process of the packet.

The Allow control unit 16 computes the transmission path of the packet,in the case where the action of the policy is “Allow”. In detail, theAllow control unit 16 instructs the path computation unit 18 to computethe transmission path to the destination. The Allow control unit 16notifies the OFS control unit 20 of the computed transmission path.

The Deny control unit 17 determines the Deny process, in the case wherethe action of the policy is “Deny”. That is, the Deny control unit 17determines the Deny process for the packet for which communication tothe destination unit is determined not to be allowed. In detail, whenthe policy determination unit 15 determines that the action of thepolicy is an action of not allowing (Deny) communication to thedestination unit, the Deny control unit 17 determines a process for thepacket for which communication to the destination unit is determined notto be allowed, based on the additional information included in theaction. The Deny control unit 17 notifies the OFS control unit 20 of thedetermined process.

As an example, the Deny control unit 17 may determine that the OFS 30 isto discard (Drop) the received packet, in the case where “Drop” is setas the additional information in the action. By the OFC 10 setting, inthe OFS 30, a rule of a process (Drop process) of discarding a specificpacket in such a way, a CPU load in the case where the OFS 30subsequently receives the same packet can be reduced. That is, in thecase where the Drop process rule is set in the OFS 30, the OFS 30 canperform the Drop process in a hardware part of the OFS 30, withoutquerying the OFC 10 as to the process of the received packet. Thiscontributes to a reduced CPU load of the OFS 30 and the OFC 10.

As another example, the Deny control unit 17 may determine to set, inthe OFS 30, an explicit path to another destination (e.g. an externalspecific unit) different from the destination unit for the receivedpacket, in the case where information indicating “forwarding to aspecific unit” is set as the additional information in the action. Indetail, the Deny control unit 17 determines that the OFS 30 is totransmit the packet to another destination such as a quarantine network,a honeypot, and a detailed flow behavior analysis unit. In this case,the Deny control unit 17 instructs the path computation unit 18 tocompute transmission paths to the plurality of such security analysisunits. Here, the Deny control unit 17 may determine to transmit thepacket to one of the plurality of units, or determine to transmit thepacket to the plurality of units. The destination to which the Denycontrol unit 17 determines to transmit the packet is defined beforehandaccording to the match condition. In the case where the number ofdestinations is one, the same destination is specified in all matchconditions.

For instance, in the case where the policy only includes a staticdefault ULAN setting, the OFC 10 cannot explicitly set the path oradaptively set the path, in the OFS 30. However, since the action isdetermined according to the policy as described above, the OFC 10 canset, in the OFS 30, the explicit path or the adaptive path for thepacket for which communication to the destination unit is not allowed.In addition, a more detailed Deny process can be provided from anexternal unit.

The Deny control unit 17 may also determine that, when the OFS 30receives the packet which is determined to be discarded or the packetfor which the explicit path is determined to be set, the OFS 30 is totransmit the information of the packet to the OFC 10 again. In detail,the Deny control unit 17 may determine to cause the OFS 30 to discard(Drop) the received packet and also determine to cause the OFS 30 totransmit (Packet-in) the information of the packet to the OFC 10, in thecase where a setting (logging setting) of keeping a log is made in theadditional information. Alternatively, the Deny control unit 17 may setthe explicit path of the received packet in the OFS 30 and alsodetermine to cause the OFS 30 to transmit (Packet-in) the information ofthe packet to the OFC 10.

By causing the OFS 30 to transmit, to the OFC 10, the information of thepacket for which communication to the destination unit is not allowed inthis way, the OFC 10 can recognize the contents of the packet. Besides,the below-mentioned Deny log creation unit 19 can create log informationbased on the received information of the packet.

The above describes the case where the Deny control unit 17 determinesthe Deny process based on the additional information included in theaction corresponding to the identification information. However, themethod of determining the Deny process by the Deny control unit 17 isnot limited to the method based on the identification information. Forinstance, the Deny control unit 17 may determine a predetermined processas the Deny process.

The packet for which communication to the destination unit is notallowed might be discarded after a predetermined time elapses, as aresult exhibiting the same behavior as the Drop process in the Denyprocess. Here, if no control is exercised on such a packet, it isimpossible to perform a process other than Drop, such as a processwhereby the OFS 30 forwards the packet to a specific unit or a processwhereby the OFC 10 keeps a log. In this exemplary embodiment, however,when the policy determination unit 15 determines the action of thepolicy as the action of not allowing communication to the destinationunit, the Deny control unit 17 determines the Deny process based on thepolicy. This enables the OFC 10 to set, in the OFS 30, a switch actionof suppressing forwarding of the packet for which communication to thedestination unit is not allowed (i.e. a process for suppressingforwarding to the destination unit).

The path computation unit 18 computes a path when transmitting thepacket to the destination in the payload or the unit indicated by thepolicy. For example, the path computation unit 18 computes informationsequentially indicating each OFS 30 and its output port via which thepacket arrives at the destination in the payload or the specific unitindicated by the policy. The path computation unit 18 may compute thepath to the destination unit, based on a shortest path algorithm. Thepath computation method, however, is not limited to the method based onthe shortest path algorithm. Since the method of computing the path tothe destination unit is widely known, its description is omitted here.The path computation unit 18 may compute a plurality of path candidates,instead of only one path candidate.

Note that a path can be regarded as sequentially indicating each unit(e.g. switch) and its output port via which a flow arrives at itsdestination. Take, for example, a path where the received packet isfirst transmitted from “output port 1” of switch A to switch B, thentransmitted from “output port 3” of switch B to switch C, and furtheroutput from “output port 4” of switch C. Such a path can be expressed as“switch A, output port 1→switch B, output port 3→switch C, output port4”.

The Deny log creation unit 19 creates a log (hereafter referred to as“Deny log”) when performing the Deny process. Hence, the Deny log can beregarded as a log indicating determination that communication to thedestination unit is not allowed. There is also the case where the Denycontrol unit 17 determines to cause the OFS 30 to transmit theinformation of the packet discarded or the information of the packet forwhich the explicit path is set, to the OFC 10 again. In this case, theDeny log creation unit 19 may create the Deny log, upon receiving suchpacket information from the OFS 30.

For example, the Deny log creation unit 19 may create the Deny log as“2009/08/11 12:00:01 Deny TCP SRC: 192.168.1.3: 49388 DST:xxx.xxx.xxx.xxx: 80”. This example of the Deny log means “a packettransmitted from a unit whose source IP address is “192.168.1.3 (portnumber 49388)” to a destination whose IP address is “xxx.xxx.xxx.xxx(port number 80)” is Deny-processed at 12:00:01 on Aug. 11, 2009”. Notethat, in the case where the OFC 10 does not output a log, the OFC 10does not need to include the Deny log creation unit 19.

The above describes an example where the Deny log includes a date or apart (e.g. an IP address and the like) of the payload information of thepacket. The information included in the Deny log, however, is notlimited to the above. The Deny log may include other information in thepayload information of the packet. Besides, the log output from the Denylog creation unit 19 is not limited to the Deny log. For instance, theoutput log may include a log (hereafter referred to as “Allow log”)indicating that communication to the destination unit is allowed(Allow). As an example, suppose communication of a packet transmitted toa destination indicated by “xxx.xxx.xxx.xxx (port number 80)” is allowed(Allow) at 12:00:01 on Aug. 11, 2009. In this case, the Deny logcreation unit 19 may create the Allow log as “2009/08/11 12:00:01 AllowTCP SRC: 192.168.1.3: 49388 DST: xxx.xxx.xxx.xxx: 80”.

The OFS control unit 20 sets a process rule that is executed by the OFS30, based on the transmission path of the packet computed by the Allowcontrol unit 16 or the Deny process determined by the Deny control unit17. That is, upon receiving the Deny process determined by the Denycontrol unit 17, the OFS control unit 20 sets a rule of executing theDeny process, in the OFS 30 receiving the packet. Here, the OFS controlunit 20 may determine the OFS 30 transmitting the information of thepacket to the OFC 10, as the setting target switch. Note that the switchin which the OFS control unit 20 sets the process rule is not limited tothe OFS 30 receiving the packet. Upon receiving the transmission path ofthe packet computed by the Allow control unit 16, the OFS control unit20 sets a rule of forwarding the packet on the transmission path, in theOFS 30.

An operation of the OFS control unit 20 is described in detail below.First, the OFS control unit 20 receives a notification of thetransmission path of the packet computed by the Allow control unit 16 orthe Deny process determined by the Deny control unit 17. In the case ofreceiving the transmission path of the packet computed by the Allowcontrol unit 16, the OFS control unit 20 creates a flow that associatesthe information of the payload of the packet as the identificationinformation with the transmission path of the packet as the action. Inthe case of receiving the Deny process determined by the Deny controlunit 17, on the other hand, the OFS control unit 20 creates a flow thatassociates the information of the payload of the packet as theidentification information with the Deny process as the action. The OFScontrol unit 20 then creates a message for updating the storage unit 32of the OFS 30 with information of the created flow, and instructs theOFP transmission unit 21 to transmit the message to the OFS 30.

For instance, the OFS control unit 20 sets the Deny process in thefollowing cases. As an example, in the case where the Deny control unit17 determines to explicitly set paths to a plurality of securityanalysis units, the OFS control unit 20 performs a setting of updatingthe output port of the packet for a flow stored in one OFS 30 or aplurality of OFSs 30, according to the paths. As another example, in thecase where the Deny control unit 17 determines to drop the receivedpacket, the OFS control unit 20 performs a setting of discarding thepacket for a flow in the OFS 30 (also referred to as “ingress”)transmitting the packet.

There is also the case where the Deny control unit 17 determines tocause the OFS 30 to transmit the packet which is determined to beDropped or the packet for which the explicit path is determined to beset, to the OFC 10 again. In this case, the OFS control unit 20 sets avirtual port “Controller” and also performs a setting of transmitting(Packet-in) the packet, for a flow in the OFS 30 (i.e. ingress)transmitting the packet.

A “Flow Mod message” is used in the case where the controller requeststhe switch to register, change, or delete a flow on the Secure Channelin OpenFlow. Accordingly, the OFS control unit 20 may set a flow in theOFS 30, by using the Flow Mod message.

The OFP transmission unit 21 transmits a message based on the OFP, tothe OFS 30. In detail, the OFP transmission unit 21 transmits a messagecreated by the OFS control unit 20 based on the OFP, to the OFS 30.

The OFP reception unit 11, the static policy acquisition unit 13, thedynamic policy acquisition unit 14, the policy determination unit 15,the Allow control unit 16, the Deny control unit 17, the pathcomputation unit 18, the Deny log creation unit 19, and the OFS controlunit 20 are realized by a CPU of a computer operating according to aprogram (relay control program). For example, the program may be storedin a storage unit (not shown) in the OFC 10, with the CPU reading theprogram and, according to the program, operating as the OFP receptionunit 11, the static policy acquisition unit 13, the dynamic policyacquisition unit 14, the policy determination unit 15, the Allow controlunit 16, the Deny control unit 17, the path computation unit 18, theDeny log creation unit 19, and the OFS control unit 20. The OFPreception unit 11, the static policy acquisition unit 13, the dynamicpolicy acquisition unit 14, the policy determination unit 15, the Allowcontrol unit 16, the Deny control unit 17, the path computation unit 18,the Deny log creation unit 19, and the OFS control unit 20 may also beeach realized by dedicated hardware.

The following describes an operation. The following first describesprocessing in the case where the OFC 10 receives information of a packetfrom the OFS 30, and then describes processing caused by updating of apolicy stored in the policy table 12.

FIG. 3 is a flowchart showing an example of processing in the case wherethe OFC 10 receives information of a packet from the OFS 30. First, whenthe OFS 30 receives a packet having no corresponding flow in the storageunit 32, the control unit 33 in the OFS 30 transmits a message includinginformation of the received packet to the OFC 10, via the networkinterface unit 31.

When the OFP reception unit 11 receives the message based on the OFPfrom the OFS 30 (step S110), the dynamic policy acquisition unit 14acquires an action that matches a Packet-in header in the OpenFlowmessage, from the policy table 12 (step S120). That is, the dynamicpolicy acquisition unit 14 compares the received information of thepacket with each match condition stored in the policy table 12, andreads an action corresponding to a match condition met by the receivedinformation of the packet, from the policy table 12. The policydetermination unit 15 determines whether or not the action read by thedynamic policy acquisition unit 14 is an action of “not allowing (Deny)communication to the destination unit” (step S130). In the case wherethe action is Deny (step S130: “YES”), the policy determination unit 15instructs the Deny control unit 17 to determine a Deny process of thepacket (step S140).

FIG. 4 is a flowchart showing an example of processing performed by theDeny control unit 17. First, the Deny control unit 17 determines theprocess, based on additional information included in the action (stepS141). In the case where the additional information indicates “Drop”(step S141: “Drop”), the Deny control unit 17 sets a Drop flag (stepS142). In detail, the Deny control unit 17 stores the setting of theDrop flag, in a memory (not shown) or the like in the OFC 10. In thecase where the additional information indicates to forward the packet toa specific host (i.e. forward to a specific unit) (step S141: “tospecific host”), on the other hand, the Deny control unit 17 instructsthe path computation unit 18 to compute a transmission path of thepacket to the specific host (step S143).

The Deny control unit 17 also determines whether or not the loggingsetting is made in the additional information (step S144). In the casewhere the logging setting is made (step S144: “YES”), the Deny controlunit 17 sets a Packet-in flag (step S145). In detail, the Deny controlunit 17 stores the setting of the Packet-in flag, in a memory (notshown) or the like in the OFC 10. Following this, the Deny log creationunit 19 creates a Deny log (Deny logging) (step S146). In the case wherethe logging setting is not made (step S144: “NO”), the Deny control unit17 does not perform the Deny log creation process.

In the case where the action is not Deny in step S130 in FIG. 3 (stepS130: “NO”), the policy determination unit 15 instructs the Allowcontrol unit 16 to compute a forwarding destination of the packet (stepS150). In detail, the Allow control unit 16 instructs the pathcomputation unit 18 to compute a path of the packet. The Allow controlunit 16 thus acquires the path.

After the process by the Deny control unit 17 (step S140) or the pathcomputation process by the Allow control unit 16 (step S150), the OFScontrol unit 20 creates a message based on the OFP, using thetransmission path, the Drop flag, or the Packet-in flag (step S160). Indetail, the OFS control unit 20 creates a message for updating a flowstored in the storage unit 32 in the OFS 30, based on the transmissionpath of the packet computed by the Allow control unit 16 or the Denyprocess determined by the Deny control unit 17, as well as the Drop flagor the Packet-in flag. The OFP transmission unit 21 transmits themessage created by the OFS control unit 20 based on the OFP, to the OFS30 (step S170).

Thus, the reception of the information of the packet from the OFS 30causes the flow to be determined (that is, the OFS 10 creates the entryto be stored in the storage unit 32 in the OFS 30, after actuallyreceiving the packet), which produces an advantageous effect of reducingthe number of flow entries stored in the storage unit 32.

Processing caused by updating of a policy stored in the policy table 12is described next. FIG. 5 is a flowchart showing an example of thisprocessing. Upon receiving information indicating that the OFS 30 isconnected to the communication network or detecting an update in thepolicy table 12, the static policy acquisition unit 13 reads an updatedpolicy from the policy table 12. Moreover, upon detecting initializationof the policy table 12, the static policy acquisition unit 13 reads allpolicies in the policy table 12 (step S210). Having read the updatedpolicy, the static policy acquisition unit 13 notifies the policydetermination unit 15 of the policy.

The policy determination unit 15 determines whether or not an actionincluded in the policy received from the static policy acquisition unit13 is an action of “not allowing (Deny) communication to the destinationunit” (step S220). In the case where the action is not Deny (step S220:“NO”), the policy determination unit 15 ends the processing. In the casewhere the action is Deny (step S220: “YES”), on the other hand, thepolicy determination unit 15 instructs the Deny control unit 17 todetermine a Deny process of the packet (step S230). Subsequentprocessing from when the Deny control unit 17 determines the Denyprocess to when the OFP transmission unit 21 transmits a message createdby the OFS control unit 20 based on the OFP to the OFS 30 (steps S230 toS250) is the same as the processing of steps S140 and S160 to S170 shownas an example in FIG. 3, and so its description is omitted.

Thus, the updating of the policy stored in the policy table 12 causesthe flow to be determined (that is, the OFC 10 creates the entry to bestored in the storage unit 32 in the OFS 30, when the policy isupdated), which produces an advantageous effect of reducing a loadbecause the OFC 10 can reduce access from the OFS 30.

As described above, according to the present invention, the policydetermination unit 15 determines, using information of a packet receivedby the OFS 30, whether to allow or not to allow communication to adestination unit for the packet that meets a match condition, based on apolicy. On condition that the policy determination unit 15 determinesnot to allow (Deny) communication to the destination unit for the packetthat meets the match condition, the Deny control unit 17 determines aprocess for suppressing forwarding of the packet to the destinationunit, and the OFS control unit 20 sets, at least in the OFS 30 receivingthe packet, a process rule of executing the process. This contributes toa reduced load of processing performed by a packet relay unit (e.g. theOFS 30) on a packet for which communication to a destination unit is notallowed (Deny).

Moreover, the Deny control unit 17 and the OFS control unit 20 set aprocess rule for discarding (Drop) the packet that meets the matchcondition, in the OFS 30. This contributes to a reduced CPU load of theOFS 30 and the OFC 10.

Besides, the Deny control unit 17 and the OFS control unit 20 set aprocess rule (e.g. a path to another destination) for transmitting thepacket that meets the match condition to another destination differentfrom the destination unit, in the OFS 30. This enables a more detailedDeny process to be provided from an external unit.

Furthermore, the Deny control unit 17 and the OFS control unit 20 set arule for transmitting, when the OFS 30 receives the Deny packet, theinformation of the packet to the OFC 10, in the OFS 30. In this case,when the OFC 10 receives the information of the packet from the OFS 30,the Deny log creation unit 19 creates a log. This enables acommunication status of the Deny packet to be recognized.

Second Exemplary Embodiment

FIG. 6 is a block diagram showing an example of a relay control systemin a second exemplary embodiment of the present invention. The samestructures as the first exemplary embodiment are given the samereference signs as in FIG. 1, and their description is omitted. Therelay control system in this exemplary embodiment includes an OFC 10 aand the OFS 30. The OFS 30 is the same as that in the first exemplaryembodiment.

The OFC 10 a includes the OFP reception unit 11, the policy table 12,the static policy acquisition unit 13, the dynamic policy acquisitionunit 14, the policy determination unit 15, the Allow control unit 16,the Deny control unit 17, the path computation unit 18, the Deny logcreation unit 19, an OFS control unit 20 a, and the OFP transmissionunit 21. In addition, the OFC 10 a includes a flow management table 22.That is, the OFC 10 a differs from the OFC 10 in the first exemplaryembodiment in that the OFS control unit 20 a is included instead of theOFS control unit 20, and also the flow management table 22 is included.The other structures are the same as the first exemplary embodiment.

The flow management table 22 stores an action (hereafter referred to as“OF action”) of a flow created by the OFS control unit 20. That is, theflow management table 22 stores a rule set in the OFS 30. For example,the flow management table 22 is realized by a magnetic disk unit or thelike included in the OFC 10 a. The flow management table 22 may storethe OF action and information (hereafter referred to as “switchidentification information”) identifying the OFS 30 as the flow updatetarget, in association with each other.

The OFS control unit 20 a stores the created OF action in the flowmanagement table 22. Having newly creating the OF action, the OFScontrol unit 20 a determines whether or not the same OF action isalready stored in the flow management table 22. In the case where thesame OF action is already stored, the OFS control unit 20 a discards thecreated OF action so that no message is transmitted from the OFPtransmission unit 21. That is, in the case where a rule to be set in theOFS 30 is already stored in the flow management table 22, the OFScontrol unit 20 a does not set the rule in the OFS 30. In the case wherethe created OF action is different from the stored OF action, the OFScontrol unit 20 a updates the flow management table 22 with the createdOF action. Functions of the OFS control unit 20 a other than theabove-mentioned function are the same as those of the OFS control unit20 in the first exemplary embodiment.

The OFS control unit 20 a is realized by a CPU of a computer operatingaccording to a program (relay control program). The OFS control unit 20a may also be realized by dedicated hardware.

The following describes an operation. FIG. 7 is a flowchart showing anexample of processing in the case where the OFC 10 a receivesinformation of a packet from the OFS 30 in the second exemplaryembodiment. Processing from when the OFC 10 a receives the informationof the packet from the OFS 30 to when the OFS control unit 20 a createsa message based on the OFP is the same as the processing of steps S110to S160 shown as an example in FIG. 3.

Having created the message based on the OFP, the OFS control unit 20 adetermines whether or not the same OF action is stored in the flowmanagement table 22 (step S310). In the case where the same OF action isalready stored in the flow management table 22 (step S310: “YES”), theOFS control unit 20 a discards the created message (step S320), and endsthe processing. In the case where the same OF action is not stored inthe flow management table 22 (step S310: “NO”), the OFS control unit 20a stores the created OF action in the flow management table 22 (stepS330). Following this, the OFP transmission unit 21 transmits themessage created by the OFS control unit 20 a based on the OFP, to theOFS 30 (step S170).

As described above, according to this exemplary embodiment, when the OFScontrol unit 20 a sets a process rule in the OFS 30, the OFS controlunit 20 a also stores the process rule in the flow management table 22.Subsequently, when the policy determination unit 15 determines not toallow (Deny) communication to a destination unit for a packet that meetsa match condition, in the case where a process rule to be set in the OFS30 is already stored in the flow management table 22, the OFS controlunit 20 a does not set the process rule in the OFS 30. In this way, aresetting instruction for an already set process rule can be prevented,which contributes to a reduced CPU load of the OFS 30 and the OFC 10 a.

For example, in the case where the OFS 30 performs only the Drop processon the Deny packet, the OFC 10 a does not receive the Deny packet fromthe OFS 30 again. If Packet-in is set for the Deny packet, however, thepacket for which communication is not allowed (Deny) will end up beingtransmitted to the OFC 10 a again. In this exemplary embodiment, evenwhen the Deny packet is transmitted to the OFC 10 a again, the OFScontrol unit 20 a suppresses the already set flow updating. Thiscontributes to a reduced processing load on the OFC 10 a and the OFS 30.

In other words, when the policy includes the action indicating the Dropprocess and the Packet-in process for the Deny packet or the explicitpath setting and the Packet-in process for the Deny packet, the OFC 10 acan be prevented from writing the already written flow action to thestorage unit 32 in the OFS 30 a plurality of times.

Third Exemplary Embodiment

FIG. 8 is a block diagram showing an example of a relay control systemin a third exemplary embodiment of the present invention. The samestructures as the first exemplary embodiment are given the samereference signs as in FIG. 1, and their description is omitted. Therelay control system in this exemplary embodiment includes an OFC 10 band the OFS 30. The OFS 30 is the same as that in the first exemplaryembodiment.

The OFC 10 b includes the OFP reception unit 11, the policy table 12,the static policy acquisition unit 13, the dynamic policy acquisitionunit 14, the policy determination unit 15, the Allow control unit 16, aDeny control unit 17 b, the path computation unit 18, the Deny logcreation unit 19, the OFS control unit 20, and the OFP transmission unit21. In addition, the OFC 10 b includes a Deny counter table 23. That is,the OFC 10 b differs from the OFC 10 in the first exemplary embodimentin that the Deny control unit 17 b is included instead of the Denycontrol unit 17, and also the Deny counter table 23 is included. Theother structures are the same as the first exemplary embodiment.

The Deny counter table 23 stores the number (also referred to as“counter value”) of determinations for a packet for which the Denycontrol unit 17 b determines not to allow communication to a destinationunit, in association with identification information (e.g. matchcondition) of the packet. This identification information is hereafteralso referred to as “field”. The counter value can be regarded as acount of the number of Packet-in processes. The Deny counter table 23may store the number of Deny processes and the same information asidentification information used in a match condition of a policy, inassociation with each other. Alternatively, the Deny counter table 23may store the number of Deny processes and information included in apayload such as a packet source, in association with each other.Moreover, to aggregate counter values, the Deny counter table 23 maystore one counter value that is shared between a plurality of flows(match conditions). For example, the Deny counter table 23 is realizedby a magnetic disk unit or the like included in the OFC 10 b.

The Deny control unit 17 b increases, in the case where an action of apolicy is “Deny” (i.e. it is determined not to allow communication tothe destination unit), a counter value in the Deny counter table 23corresponding to a match condition of the policy. In the case where thecounter value exceeds a predetermined threshold (hereafter referred toas “Deny process count threshold”), the Deny control unit 17 bdetermines that a process (i.e. Packet-in process) of transmittinginformation of a packet to the OFC 10 b is not to be performed for aflow that meets the match condition corresponding to the counter value.

That is, in the case where the number of Packet-in processes for aspecific flow (e.g. on a policy basis or on a source address basis)determined as Deny exceeds a threshold (Deny process count threshold),the Deny control unit 17 b determines to cause the OFS 30 to performonly the Drop process or the specific path selection for the specificflow. In so doing, for example in the case where an attack process iscarried out on the OFC 10 b, a Packet-in frequency can be decreased,which contributes to a reduced processing load on the OFS 30 and the OFC10 b.

The Deny control unit 17 b is realized by a CPU of a computer operatingaccording to a program (relay control program). The Deny control unit 17b may also be realized by dedicated hardware.

The following describes an operation. In the third exemplary embodiment,processing from when the OFC 10 b receives information of a packet fromthe OFS 30 to when the OFP transmission unit 21 transmits a message tothe OFS 30 is the same as the processing in the flowchart shown as anexample in FIG. 3, but processing performed by the Deny control unit 17b is different from the processing performed by the Deny control unit 17in the first exemplary embodiment. An operation performed by the Denycontrol unit 17 b is described below.

FIG. 9 is a flowchart showing an example of processing performed by theDeny control unit 17 b. An operation up to when the Deny control unit 17b determines the process based on the additional information included inthe action is the same as the operation of steps S141 to S143 in FIG. 4.

Next, the Deny control unit 17 b determines whether or not the loggingsetting is made in the additional information (step S144). In the casewhere the logging setting is not made (step 144: “NO”), the Deny controlunit 17 b does not perform the Deny log creation process. In the casewhere the logging setting is made (step S144: “YES”), the Deny controlunit 17 b determines whether or not a field matching the flow is storedin the Deny counter table 23 (step S410). In the case where the fieldmatching the flow is stored (step S410: “YES”), the Deny control unit 17b increases a counter value corresponding to the field (step S420). Forexample, the Deny control unit 17 b adds 1 to the counter value of thefield matching the flow. In the case where the field matching the flowis not stored (step S410: “NO”), the Deny control unit 17 b creates amatch condition (field) of the flow, and initializes a counter value to0 (step S430). After increasing the counter value (step S420) orcreating the match condition (field) of the flow (step S430), the Denycontrol unit 17 b determines whether or not the counter value is equalto or more than the threshold (Deny process count threshold) (stepS440). In the case where the counter value is equal to or more than thethreshold (step S440: “YES”), the Deny control unit 17 b instructs theDeny log creation unit 19 to output information indicating that logoutput is suppressed (step S450). In detail, in the case where thecounter value is equal to or more than the threshold, the Deny controlunit 17 b instructs the OFS control unit 20 to create a message, withPacket-in being deleted from the action of the policy. In the case wherethe counter value is less than the threshold (step S440: “NO”), the Denycontrol unit 17 b sets the Packet-in flag and performs Deny logging, asin steps S145 to S146 shown as an example in FIG. 3.

The above describes the case where, in step S440 in FIG. 9, the Denycontrol unit 17 b determines whether or not the counter value is equalto or more than the threshold (Deny process count threshold). However,the Deny control unit 17 b may instead determine whether or not thecounter value exceeds the threshold (Deny process count threshold).

As described above, according to this exemplary embodiment, when thepolicy determination unit 15 determines not to allow (Deny)communication to a destination unit, the Deny control unit 17 b and theOFS control unit 20 increase the number of determinations for a packetstored in the Deny counter table 23 in association with an elementidentifying the packet. In the case where the number of determinationsfor the packet exceeds the Deny process count threshold, the Denycontrol unit 17 b and the OFS control unit 20 set a process rule forsuppressing transmission of information of the packet to the OFC 10 b,in the OFS 30. As a result, a situation where information of a packetfor which communication is not allowed is notified to the OFC 10 b anexcessive number of times can be prevented.

Fourth Exemplary Embodiment

FIG. 10 is a block diagram showing an example of a relay control systemin a fourth exemplary embodiment of the present invention. The samestructures as the first exemplary embodiment are given the samereference signs as in FIG. 1, and their description is omitted. Therelay control system in this exemplary embodiment includes an OFC 10 cand the OFS 30. The OFS 30 is the same as that in the first exemplaryembodiment. Though the first exemplary embodiment describes the casewhere the OFS control unit 20 sets a process rule of executing a Denyprocess in the OFS 30 (i.e. ingress) receiving packet information, thisexemplary embodiment describes the case where the Deny setting is madeon an OFS 30 other than the ingress.

The OFC 10 c includes the OFP reception unit 11, the policy table 12,the static policy acquisition unit 13, the dynamic policy acquisitionunit 14, the policy determination unit 15, an Allow control unit 16 c,the Deny control unit 17, the path computation unit 18, the Deny logcreation unit 19, the OFS control unit 20, and the OFP transmission unit21. That is, the OFC 10 c differs from the OFC 10 in the first exemplaryembodiment in that the Allow control unit 16 c is included instead ofthe Allow control unit 16. The other structures are the same as thefirst exemplary embodiment.

The Allow control unit 16 c computes, in the case where an action of apolicy is “Allow” (i.e., it is determined to allow communication to thedestination unit), one or more path candidates to a destination unit ofa packet. In detail, the Allow control unit 16 c instructs the pathcomputation unit 18 to compute a plurality of transmission paths to thedestination unit. The Allow control unit 16 c then determines, for eachcomputed path, whether or not a switch (hereafter referred to as “Denyswitch”) that determines not to allow (Deny) communication of thereceived packet exists on the path. For example, the Allow control unit16 c may query each switch on the path whether to allow or not to allowcommunication of the packet and, based on a response result, determinewhether or not the Deny switch exists.

In the case where the transmission path candidates do not include a pathon which the communication of the packet is allowed, the Allow controlunit 16 c determines to perform the Deny process. In detail, the Allowcontrol unit 16 c instructs the Deny control unit 17 to determine theDeny process of the packet. In the case where the transmission pathcandidates include a path on which the communication of the packet isallowed, the Allow control unit 16 c determines not to perform the Denyprocess, and notifies the OFS control unit 20 of the path.

Note that, in the case of determining that the Deny switch exists on thepath, the Allow control unit 16 c may determine to set the Deny processin the Deny switch. In this case, the Allow control unit 16 c mayinstruct the Deny control unit 17 to determine the Deny process for theswitch on the path, with the OFS control unit 20 instructing the switchon the path to update the flow based on the determined Deny process.

The following describes the case where the Deny process is set in theswitch on the path, with reference to FIGS. 11 and 12. FIGS. 11 and 12are explanatory diagrams showing an example where communication isperformed from a source (Nancy) to a destination (Paul). A rangeenclosed with dashed lines is a communication network to which thesource (Nancy) and the destination (Paul) are connected. SW1 to SW4denote switches (e.g. the OFS 30), and CT1 denotes a controller (e.g.the OFC 10 c). Among SW1 to SW4, each switch shown by hatching is aswitch not allowing communication from the source (Nancy) to thedestination (Paul), whereas each switch shown by a white circle is aswitch allowing communication from the source (Nancy) to the destination(Paul). In the example shown in FIG. 11, a switch to which the source(Nancy) is connected determines not to allow communication to thedestination (Paul). Accordingly, the policy determination unit 15instructs the Deny control unit 17 to determine the Deny process of thepacket.

Meanwhile, in the example shown in FIG. 12, a switch to which the source(Nancy) is connected determines to allow communication to thedestination (Paul). Accordingly, the policy determination unit 15instructs the Allow control unit 16 c to compute the forwardingdestination of the packet. The Allow control unit 16 c instructs thepath computation unit 18 to compute a plurality of transmission paths tothe destination. In the example shown in FIG. 12, three paths to thedestination, namely, a path (path 1) via SW1, SW2, and SW4, a path (path2) via SW1, SW3, and SW4, and a path (path 3) via SW1 and SW4, arecomputed. The Allow control unit 16 c first determines whether or notthe Deny switch exists on path 1. SW2 that determines not to allowcommunication exists on path 1. The Allow control unit 16 c thendetermines whether or not the Deny switch exists on the next pathcandidate (path 2). No Deny switch exists on path 2. Hence, the Allowcontrol unit 16 c notifies the OFS control unit 20 of path 2.

The Allow control unit 16 c may also determine to set the Deny processin SW2 on path 1. In this case, the Allow control unit 16 c instructsthe Deny control unit 17 to determine the Deny process for SW2. The OFScontrol unit 20 instructs SW2 to update the flow, based on thedetermined Deny process. Thus, the Deny process can be set beforehand inthe switch on the path. Therefore, in the case where a communicationunit is connected to a switch in which the Deny process is already set,there is no need to query the OFC 10 c again. This contributes to areduced load on the OFC 10 c and the OFS 30 for query.

The Allow control unit 16 c is realized by a CPU of a computer operatingaccording to a program (relay control program). The Allow control unit16 c may also be realized by dedicated hardware.

The following describes an operation. FIG. 13 is a flowchart showing anexample of the case where the OFC 10 c receives information of a packetfrom the OFS 30. In the fourth exemplary embodiment, processing in thecase where the OFC 10 c receives the information of the packet from theOFS 30 and the policy determination unit 15 determines the action asDeny is the same as the processing of steps 5110 to S140 and S160 toS170 shown as an example in FIG. 3. Processing (step S510) performed bythe Allow control unit 16 c in the case where the policy determinationunit 15 determines the action as an action of “allowing (Allow)communication to the destination unit” (step S130 in FIG. 13: “NO”) isdescribed below.

FIG. 14 is a flowchart showing an example of the processing performed bythe Allow control unit 16 c. First, the Allow control unit 16 cinstructs the path computation unit 18 to compute a path candidate (stepS511). The Allow control unit 16 c performs determination on eachcomputed path candidate in sequence, starting from the first pathcandidate (step S512). Note that the order of determination is notparticularly limited. The Allow control unit 16 c determines whether ornot the Deny switch exists on the path of the candidate (step S513). Inthe case where the Deny switch exists (step S513: “YES”), the Allowcontrol unit 16 c determines to perform a Deny process on the switch(step S515). The Allow control unit 16 c then determines whether or notthere is another path candidate (step S516). In the case where there isanother path candidate (step S516: “YES”), the Allow control unit 16 crepeats the processing of steps S513 and S515 to S518 for eachsucceeding candidate (step S518). In the case where there is no otherpath candidate (step S516: “NO”), the Allow control unit 16 c determinesto perform the Deny process (step S517).

In the case where no Deny switch exists on the path of the candidate instep S513 (step S513: “NO”), the Allow control unit 16 c notifies theOFS control unit 20 of the path (step S514).

In FIG. 13, having determined to perform the Deny process (step S520:“YES”), the Allow control unit 16 c instructs the Deny control unit 17to determine the Deny process. Subsequent processing is the same as theprocessing of steps S140 and S160 to S170 shown as an example in FIG. 3.

The above describes the case where, in the processing shown as anexample in FIG. 14, upon detecting the path having no Deny switch, theAllow control unit 16 c notifies the OFS control unit 20 of the path,without performing determination on the path of each succeedingcandidate. However, even when detecting the path having no Deny switch,the Allow control unit 16 c may determine, for each of the remainingpath candidates, whether or not the Deny switch exists on the path, andnotify the OFS control unit 20 of a subsequently detected path.

As described above, according to this exemplary embodiment, on conditionthat the policy determination unit 15 determines to allow (Allow)communication to a destination unit for a packet that meets a matchcondition, the path computation unit 18 computes one or more pathcandidates to the destination unit of the packet. Following this, theAllow control unit 16 c determines whether or not an OFS 30 thatdetermines not to allow communication of the packet exists on the pathcandidate. In the case where an OFS 30 that determines not to allowcommunication of the packet exists on each path of all of the pathcandidates, the Deny control unit 17 and the OFS control unit 20 set aprocess rule of executing a process (Deny process) for suppressingforwarding of the packet to the destination unit, at least in the OFS 30receiving the packet. As a result, whether or not transmission isallowed can be determined before the OFS 30 relays the packet to anotherswitch, which contributes to a reduced load on the communicationnetwork.

Moreover, in the case where the OFS 30 not allowing communication of thepacket that meets the match condition exists on the path, the Denycontrol unit 17 sets a process rule of executing a process (Denyprocess) for suppressing forwarding of the packet to the destinationunit, in the OFS 30. Thus, the process rule of executing the Denyprocess can be set not only in the switch (i.e. ingress) transmittingthe packet to the controller, but also in the switch on the pathcandidate. This contributes to a reduced load on the communicationnetwork.

Fifth Exemplary Embodiment

FIG. 15 is a block diagram showing an example of a relay control systemin a fifth exemplary embodiment of the present invention. The samestructures as the second exemplary embodiment are given the samereference signs as in FIG. 6, and their description is omitted. Therelay control system in this exemplary embodiment includes an OFC 10 dand the OFS 30. The OFS 30 is the same as that in the first exemplaryembodiment.

The OFC 10 d includes the OFP reception unit 11, the policy table 12,the dynamic policy acquisition unit 14, the policy determination unit15, the Allow control unit 16, the Deny control unit 17, the pathcomputation unit 18, the Deny log creation unit 19, an OFS control unit20 d, the OFP transmission unit 21, and the flow management table 22.That is, the OFC 10 d differs from the OFC 10 a in the second exemplaryembodiment in that the static policy acquisition unit 13 is notincluded, and also the OFS control unit 20 d is included instead of theOFS control unit 20 a. The other structures are the same as the secondexemplary embodiment.

In addition to the functions of the OFS control unit 20 a in the secondexemplary embodiment, the OFS control unit 20 d instructs to update aflow stored in the OFS 30, based on an OF action (i.e. an action of aflow created by the OFS control unit 20 a) stored in the flow managementtable 22. That is, the OFS control unit 20 d sets the OF action storedin the flow management table 22, in the OFS 30. For example, when theOFS 30 is connected, the OFS control unit 20 d reads an OF actioncorresponding to switch identification information indicating theconnected OFS 30, from the flow management table 22. The OFS controlunit 20 d then creates a message for updating a flow, and instructs theOFP transmission unit 21 to transmit the message to the OFS 30. Notethat the OFS control unit 20 d may read all OF actions stored in theflow management table 22, regardless of the switch identificationinformation. Moreover, the OFS control unit 20 d may perform theabove-mentioned processing in the case where the OFC 10 d receives, fromthe OFS 30, a message requesting an action of a flow.

The OFS control unit 20 d is realized by a CPU of a computer operatingaccording to a program (relay control program). The OFS control unit 20d may also be realized by dedicated hardware.

The following describes an operation. FIG. 16 is a flowchart showing anexample of processing in the case where the OFC 10 d receives a messagerequesting an action of a flow, from the OFS 30. When the OFP receptionunit 11 receives the message requesting the action of the flow from theOFS 30 (step S610), the OFS control unit 20 d reads the action (OFaction) of the flow from the flow management table 22, and creates amessage based on the OFP (step S620). The OFP transmission unit 21transmits the message created by the OFS control unit 20 d based on theOFP, to the OFS 30 (step S630).

As described above, according to this exemplary embodiment, the OFScontrol unit 20 d sets a flow stored in the flow management table 22, inthe packet relay unit. Therefore, even in the case where an update ofthe policy table 12 cannot be detected as in the second exemplaryembodiment, the flow indicating the Deny process can be reflected on theOFS 30.

The following describes an example of a minimum structure of a relaycontrol unit according to the present invention. FIG. 17 is a blockdiagram showing an example of a minimum structure of a relay controlunit according to the present invention. The relay control unitaccording to the present invention is a relay control unit (e.g. the OFC10) for controlling a packet relay unit (e.g. the OFS 30), the relaycontrol unit comprising: communication allowance determination means 81(e.g. the policy determination unit 15) for determining, usinginformation of a packet received by the packet relay unit and based on apolicy which is information associating a match condition withcommunicability information (e.g. action), whether to allow (e.g. Allow)or not to allow (e.g. Deny) communication to a destination unit for thepacket that meets the match condition, the match condition beinginformation identifying the packet, and the communicability informationindicating whether to allow or not to allow the communication to thedestination unit for the packet that meets the match condition; and rulesetting means 82 (e.g. the Deny control unit 17 and the OFS control unit20) for setting, at least in the packet relay unit receiving the packet,a rule (e.g. flow) of executing a process (e.g. Deny process) forsuppressing forwarding of the packet to the destination unit, oncondition that the communication allowance determination means 81determines not to allow (e.g. Deny) the communication to the destinationunit for the packet that meets the match condition.

According to such a structure, a load of processing performed by thepacket relay unit for a packet for which communication to a destinationunit is not allowed can be reduced.

Moreover, as shown in a block diagram of FIG. 18, a packet relay unit 90may be provided to a relay control unit 80 according to the presentinvention to thereby form a relay control system.

The following describes an example of a minimum structure of a packetrelay unit according to the present invention. FIG. 19 is a blockdiagram showing an example of a minimum structure of a packet relay unitaccording to the present invention. The packet relay unit according tothe present invention comprises: flow storage means 71 (e.g. the storageunit 32) for storing a flow which is information associating a processfor a received packet with information identifying the packet; andpacket relay means 72 (e.g. the control unit 33) for relaying thereceived packet based on the flow stored in the flow storage means 71.

The packet relay means 72 transmits information of the packet to a relaycontrol unit (e.g. the OFC 10) in the case where the flow associatedwith the received packet is not stored in the flow storage means 71, andprocesses the packet based on the flow set by the relay control unit,the relay control unit: determining, using the information of thereceived packet and based on a policy which is information associating amatch condition with communicability information (e.g. action), whetherto allow (e.g. Allow) or not to allow (e.g. Deny) communication to adestination unit for the packet that meets the match condition, thematch condition being information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and setting, at least in a source unit receiving thepacket, the flow of executing a process (e.g. Deny process) forsuppressing forwarding of the packet that meets the match condition tothe destination unit, on condition that the communication to thedestination unit is determined not to be allowed (e.g. Deny) for thepacket.

According to such a structure, a load of processing performed by thepacket relay unit for a packet for which communication to a destinationunit is not allowed can be reduced.

Note that at least the following relay control unit, relay system, andpacket relay unit are also included in any of the exemplary embodimentsdescribed above.

(1) A relay control unit (e.g. the OFC 10) for controlling a packetrelay unit (e.g. the OFS 30), the relay control unit comprising:communication allowance determination means (e.g. the policydetermination unit 15) for determining, using information of a packetreceived by the packet relay unit and based on a policy which isinformation associating a match condition with communicabilityinformation (e.g. action), whether to allow (e.g. Allow) or not to allow(e.g. Deny) communication to a destination unit for the packet thatmeets the match condition, the match condition being informationidentifying the packet, and the communicability information indicatingwhether to allow or not to allow the communication to the destinationunit for the packet that meets the match condition; and rule settingmeans (e.g. the Deny control unit 17 and the OFS control unit 20) forsetting, at least in the packet relay unit receiving the packet, a rule(e.g. flow) of executing a process (e.g. Deny process) for suppressingforwarding of the packet to the destination unit, on condition that thecommunication allowance determination means determines not to allow(e.g. Deny) the communication to the destination unit for the packetthat meets the match condition.

(2) The relay control unit wherein the rule setting means (e.g. the Denycontrol unit 17 and the OFS control unit 20) sets, at least in thepacket relay unit receiving the packet, a rule for discarding (e.g.Drop) the packet that meets the match condition.

(3) The relay control unit wherein the rule setting means (e.g. the Denycontrol unit 17 and the OFS control unit 20) sets, at least in thepacket relay unit receiving the packet, a rule for transmitting thepacket that meets the match condition to another destination (e.g. aquarantine network, a honeypot, a detailed flow behavior analysis unit,and so on) different from the destination unit.

(4) The relay control unit comprising path computation means (e.g. thepath computation unit 18) for computing a path to a predetermineddestination according to the match condition, wherein the rule settingmeans sets, at least in the packet relay unit receiving the packet, arule for transmitting the packet that meets the match condition to thedestination computed by the path computation means.

(5) The relay control unit comprising log creation means (e.g. the Denylog creation unit 19) for creating a log (e.g. Deny log) indicating thatthe communication allowance determination means (e.g. the policydetermination unit 15) determines not to allow the communication to thedestination unit, wherein the rule setting means sets, in the packetrelay unit, a rule for transmitting the information of the packet to therelay control unit, when the packet relay unit receives the packet forwhich the process (e.g. Deny process) for suppressing the forwarding tothe destination unit is executed, and wherein the log creation meanscreates the log, when receiving the information of the packet from thepacket relay unit.

(6) The relay control unit comprising rule storage means (e.g. the flowmanagement table 22) for storing the rule set in the packet relay unit,wherein the rule setting means (e.g. the Deny control unit 17 and theOFS control unit 20 a): stores the rule into the rule storage means,when setting the rule in the packet relay unit; and, in the case wherethe rule to be set in the packet relay unit is already stored in therule storage means when the communication allowance determination meansdetermines not to allow the communication to the destination unit forthe packet that meets the match condition, does not set the rule in thepacket relay unit.

(7) The relay control unit comprising determination count storage means(e.g. the Deny counter table 23) for storing the number (e.g. countervalue) of determinations for the packet for which the communicationallowance determination means (e.g. the policy determination unit 15)determines not to allow the communication to the destination unit, inassociation with an element identifying the packet, wherein the rulesetting means (e.g. the Deny control unit 17 b and the OFS control unit20): increases the number of determinations for the packet associatedwith the element, when the communication allowance determination meansdetermines not to allow the communication to the destination unit; andsets, in the packet relay unit, a rule for suppressing transmission ofthe information of the packet to the relay control unit, in the casewhere the number of determinations for the packet exceeds apredetermined threshold (e.g. Deny process count threshold).

(8) The relay control unit comprising: path candidate computation means(e.g. the path computation unit 18) for computing one or more pathcandidates to the destination unit of the packet, on condition that thecommunication allowance determination means (e.g. the policydetermination unit 15) determines to allow (e.g. Allow) thecommunication to the destination unit for the packet that meets thematch condition; and path determination means (e.g. the Allow controlunit 16 c ) for determining, for each of the path candidates, whether ornot a packet relay unit determining not to allow the communication ofthe packet exists on the path candidate, wherein, in the case where thepacket relay unit determining not to allow the communication of thepacket exists on each path of all of the path candidates, the rulesetting means (e.g. the Deny control unit 17 and the OFS control unit20) sets, at least in the packet relay unit receiving the packet, therule of executing the process (e.g. Deny process) for suppressing theforwarding of the packet to the destination unit.

(9) The relay control unit wherein, in the case where the packet relayunit (e.g. switch) that does not allow the communication of the packetthat meets the match condition exists on the path, the rule settingmeans (e.g. the Deny control unit 17 and the OFS control unit 20) sets,in the packet relay unit, the rule of executing the process (i.e. Denyprocess) for suppressing the forwarding of the packet to the destinationunit.

(10) The relay control unit wherein the rule setting means (e.g. the OFScontrol unit 20 d) sets the rule (e.g. flow action) stored in the rulestorage means (e.g. the flow management table 22), in the packet relayunit.

(11) A relay control system comprising: a packet relay unit (e.g. theOFS 30); and a relay control unit (the OFC 10) for controlling thepacket relay unit, wherein the relay control unit includes:communication allowance determination means (e.g. the policydetermination unit 15) for determining, using information of a packetreceived by the packet relay unit and based on a policy which isinformation associating a match condition with communicabilityinformation (e.g. action), whether to allow (e.g. Allow) or not to allow(e.g. Deny) communication to a destination unit for the packet thatmeets the match condition, the match condition being informationidentifying the packet, and the communicability information indicatingwhether to allow or not to allow the communication to the destinationunit for the packet that meets the match condition; and rule settingmeans (e.g. the Deny control unit 17 and the OFS control unit 20) forsetting, at least in the packet relay unit receiving the packet, a rule(e.g. flow) of executing a process (e.g. Deny process) for suppressingforwarding of the packet to the destination unit, on condition that thecommunication allowance determination means determines not to allow(e.g. Deny) the communication to the destination unit for the packetthat meets the match condition.

(12) The relay control system wherein the rule setting means sets, atleast in the packet relay unit receiving the packet, a rule fordiscarding the packet that meets the match condition.

(13) The relay control system wherein the rule setting means sets, atleast in the packet relay unit receiving the packet, a rule fortransmitting the packet that meets the match condition to anotherdestination different from the destination unit.

(14) A packet relay unit comprising: flow storage means (e.g. thestorage unit 32) for storing a flow which is information associating aprocess for a received packet with information identifying the packet;and packet relay means (e.g. the control unit 33) for relaying thereceived packet based on the flow stored in the flow storage means,wherein the packet relay means transmits information of the packet to arelay control unit (e.g. the OFC 10) in the case where the flowassociated with the received packet is not stored in the flow storagemeans, and processes the packet based on the flow set by the relaycontrol unit, the relay control unit: determining, using the informationof the received packet and based on a policy which is informationassociating a match condition with communicability information (e.g.action), whether to allow (e.g. Allow) or not to allow (e.g. Deny)communication to a destination unit for the packet that meets the matchcondition, the match condition being information identifying the packet,and the communicability information indicating whether to allow or notto allow the communication to the destination unit for the packet thatmeets the match condition; and setting, at least in a source unitreceiving the packet, the flow of executing a process (e.g. Denyprocess) for suppressing forwarding of the packet that meets the matchcondition to the destination unit, on condition that the communicationto the destination unit is determined not to be allowed (e.g. Deny) forthe packet.

While the present invention has been described with reference to theabove exemplary embodiments and examples, the present invention is notlimited to the above exemplary embodiments and examples. Various changesunderstandable by those skilled in the art within the scope of thepresent invention can be made to the structures and details of thepresent invention.

This application claims priority based on Japanese Patent ApplicationNo. 2009-209722 filed on Sep. 10, 2009, the disclosure of which isincorporated herein in its entirety.

INDUSTRIAL APPLICABILITY

The present invention is preferably applied to a relay control unit forcontrolling processing performed by a packet relay unit.

REFERENCE SIGNS LIST

10, 10 a, 10 b, 10 c, 10 d OFC

11 OFP reception unit

12 policy table

13 static policy acquisition unit

14 dynamic policy acquisition unit

15 policy determination unit

16, 16 c Allow control unit

17, 17 b Deny control unit

18 path computation unit

19 Deny log creation unit

20, 20 a, 20 d OFS control unit

21 OFP transmission unit

22 flow management table

23 Deny counter table

30 OFS

31 network interface unit

32 storage unit

33 control unit

SW1 to SW4 switch

CT1 controller

1.-22. (canceled)
 23. A relay control unit for controlling a packetrelay unit, the relay control unit comprising: a communication allowancedetermination section for determining, using information of a packetreceived by the packet relay unit and based on a policy which comprisesinformation associating a match condition with communicabilityinformation, whether to allow or not to allow communication to adestination unit for the packet that meets the match condition, thematch condition comprising information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and a rule setting section for setting, at least in thepacket relay unit receiving the packet, a rule of executing a processfor suppressing forwarding of the packet to the destination unit, oncondition that the communication allowance determination sectiondetermines not to allow the communication to the destination unit forthe packet that meets the match condition.
 24. The relay control unitaccording to claim 23, wherein the rule setting section sets, at leastin the packet relay unit receiving the packet, a rule for discarding thepacket that meets the match condition.
 25. The relay control unitaccording to claim 23, wherein the rule setting section sets, at leastin the packet relay unit receiving the packet, a rule for transmittingthe packet that meets the match condition to another destinationdifferent from the destination unit.
 26. The relay control unitaccording to claim 25, further comprising a path computation section forcomputing a path to a predetermined destination according to the matchcondition, wherein the rule setting section sets, at least in the packetrelay unit receiving the packet, a rule for transmitting the packet thatmeets the match condition to the destination computed by the pathcomputation section.
 27. The relay control unit according to claim 23,further comprising a log creation section for creating a log indicatingthat the communication allowance determination section determines not toallow the communication to the destination unit, wherein the rulesetting section sets, in the packet relay unit, a rule for transmittingthe information of the packet to the relay control unit, when the packetrelay unit receives the packet for which the process for suppressing theforwarding to the destination unit is executed, and wherein the logcreation section creates the log, when receiving the information of thepacket from the packet relay unit.
 28. The relay control unit accordingto claim 23, further comprising a rule storage section for storing therule set in the packet relay unit, wherein the rule setting section:stores the rule into the rule storage section, when setting the rule inthe packet relay unit; and, in the case where the rule to be set in thepacket relay unit is already stored in the rule storage section when thecommunication allowance determination section determines not to allowthe communication to the destination unit for the packet that meets thematch condition, does not set the rule in the packet relay unit.
 29. Therelay control unit according to claim 27, further comprising adetermination count storage section for storing the number ofdeterminations for the packet for which the communication allowancedetermination section determines not to allow the communication to thedestination unit, in association with an element identifying the packet,wherein the rule setting section: increases the number of determinationsfor the packet associated with the element, when the communicationallowance determination section determines not to allow thecommunication to the destination unit; and sets, in the packet relayunit, a rule for suppressing transmission of the information of thepacket to the relay control unit, in the case where the number ofdeterminations for the packet exceeds a predetermined threshold.
 30. Therelay control unit according to claim 23, further comprising: a pathcandidate computation section for computing one or more path candidatesto the destination unit of the packet, on condition that thecommunication allowance determination section determines to allow thecommunication to the destination unit for the packet that meets thematch condition; and path determination section for determining, foreach of the path candidates, whether or not a packet relay unitdetermining not to allow the communication of the packet exists on thepath candidate, wherein, in the case where the packet relay unitdetermining not to allow the communication of the packet exists on eachpath of all of the path candidates, the rule setting section sets, atleast in the packet relay unit receiving the packet, the rule ofexecuting the process for suppressing the forwarding of the packet tothe destination unit.
 31. The relay control unit according to claim 30,wherein, in the case where the packet relay unit that does not allow thecommunication of the packet that meets the match condition exists on thepath, the rule setting section sets, in the packet relay unit, the ruleof executing the process for suppressing the forwarding of the packet tothe destination unit.
 32. The relay control unit according to claim 28,wherein the rule setting section sets the rule stored in the rulestorage section, in the packet relay unit.
 33. A relay control systemcomprising: a packet relay unit; and a relay control unit forcontrolling the packet relay unit, wherein the relay control unitincludes: a communication allowance determination section fordetermining, using information of a packet received by the packet relayunit and based on a policy which comprises information associating amatch condition with communicability information, whether to allow ornot to allow communication to a destination unit for the packet thatmeets the match condition, the match condition comprising informationidentifying the packet, and the communicability information indicatingwhether to allow or not to allow the communication to the destinationunit for the packet that meets the match condition; and a rule settingsection for setting, at least in the packet relay unit receiving thepacket, a rule of executing a process for suppressing forwarding of thepacket to the destination unit, on condition that the communicationallowance determination section determines not to allow thecommunication to the destination unit for the packet that meets thematch condition.
 34. The relay control system according to claim 33,wherein the rule setting section sets, at least in the packet relay unitreceiving the packet, a rule for discarding the packet that meets thematch condition.
 35. The relay control system according to claim 33,wherein the rule setting section sets, at least in the packet relay unitreceiving the packet, a rule for transmitting the packet that meets thematch condition to another destination different from the destinationunit.
 36. A packet relay unit comprising: a flow storage section forstoring a flow which is information associating a process for a receivedpacket with information identifying the packet; and a packet relaysection for relaying the received packet based on the flow stored in theflow storage section, wherein the packet relay section transmitsinformation of the packet to a relay control unit in the case where theflow associated with the received packet is not stored in the flowstorage section, and processes the packet based on the flow set by therelay control unit, the relay control unit: determining, using theinformation of the received packet and based on a policy which comprisesinformation associating a match condition with communicabilityinformation, whether to allow or not to allow communication to adestination unit for the packet that meets the match condition, thematch condition comprising information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and setting, at least in a source unit receiving thepacket, the flow of executing a process for suppressing forwarding ofthe packet that meets the match condition to the destination unit, oncondition that the communication to the destination unit is determinednot to be allowed for the packet.
 37. A relay control method comprising:a relay control unit for controlling a packet relay unit determining,using information of a packet received by the packet relay unit andbased on a policy which comprises information associating a matchcondition with communicability information, whether to allow or not toallow communication to a destination unit for the packet that meets thematch condition, the match condition comprising information identifyingthe packet, and the communicability information indicating whether toallow or not to allow the communication to the destination unit for thepacket that meets the match condition; and the relay control unitsetting, at least in the packet relay unit receiving the packet, a ruleof executing a process for suppressing forwarding of the packet to thedestination unit, on condition that the communication to the destinationunit is determined no to be allowed for the packet that meets the matchcondition.
 38. The relay control method according to claim 37, wherein arule for discarding the packet that meets the match condition is set atleast in the packet relay unit receiving the packet, on condition thatthe communication to the destination unit is determined no to be allowedfor the received packet.
 39. The relay control method according to claim37, wherein a rule for transmitting the packet that meets the matchcondition to another destination different from the destination unit isset at least in the packet relay unit receiving the packet, on conditionthat the communication to the destination unit is determined no to beallowed for the received packet.
 40. A packet relay method comprising:relaying a received packet based on a flow stored in flow storagesection for storing the flow which is information associating a processfor the received packet with information identifying the packet; andtransmitting information of the packet to a relay control unit in thecase where the flow associated with the received packet is not stored inthe flow storage section, and relaying the packet based on the flow setby the relay control unit, the relay control unit: determining, usingthe information of the received packet and based on a policy whichcomprises information associating a match condition with communicabilityinformation, whether to allow or not to allow communication to adestination unit for the packet that meets the match condition, thematch condition comprising information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and setting, at least in a source unit receiving thepacket, the flow of executing a process for suppressing forwarding ofthe packet that meets the match condition to the destination unit, oncondition that the communication to the destination unit is determinednot to be allowed for the packet.
 41. A relay control program applied toa computer for controlling a packet relay unit, the relay controlprogram causing the computer to execute: a communication allowancedetermination process of determining, using information of a packetreceived by the packet relay unit and based on a policy which comprisesinformation associating a match condition with communicabilityinformation, whether to allow or not to allow communication to adestination unit for the packet that meets the match condition, thematch condition comprising information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and a rule setting process of setting, at least in thepacket relay unit receiving the packet, a rule of executing a processfor suppressing forwarding of the packet to the destination unit, oncondition that the communication to the destination unit is determinedno to be allowed for the packet that meets the match condition in thecommunication allowance determination process.
 42. The relay controlprogram according to claim 41, causing the computer to set, at least inthe packet relay unit receiving the packet, a rule for discarding thepacket that meets the match condition, in the rule setting process. 43.The relay control program according to claim 41, causing the computer toset, at least in the packet relay unit receiving the packet, a rule fortransmitting the packet that meets the match condition to anotherdestination different from the destination unit, in the rule settingprocess.
 44. A packet relay program applied to a computer that includesflow storage section for storing a flow which is information associatinga process for a received packet with information identifying the packet,the packet relay program causing the computer to execute a packet relayprocess of relaying the received packet based on the flow stored in theflow storage section, wherein in the packet relay process, the computeris caused to transmit information of the packet to a relay control unitin the case where the flow associated with the received packet is notstored in the flow storage section, and process the packet based on theflow set by the relay control unit, the relay control unit: determining,using the information of the received packet and based on a policy whichcomprises information associating a match condition with communicabilityinformation, whether to allow or not to allow communication to adestination unit for the packet that meets the match condition, thematch condition comprising information identifying the packet, and thecommunicability information indicating whether to allow or not to allowthe communication to the destination unit for the packet that meets thematch condition; and setting, at least in a source unit receiving thepacket, the flow of executing a process for suppressing forwarding ofthe packet that meets the match condition to the destination unit, oncondition that the communication to the destination unit is determinednot to be allowed for the packet.